package top.yxqz.springmvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author: 余小小
 * @date: 2023/4/20
 * @description：
 */
@Controller
public class SpringMVCHellController {

    /**
     * 跳转去index页面
     *
     * @return
     */
    @RequestMapping("/")
    public String goIndex() {
        return "params";
    }

    /**
     * uri: /hello
     *
     * @return
     */
    @RequestMapping("/hello")
    public String hello() {
        return "hello";
    }

}
